﻿<UserControl x:Class="AzureBlobManager.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="250" d:DesignWidth="500"
    xmlns:dataInput="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data.Input">

    <Grid Background="White"
        Width="500" Height="250">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <ListBox x:Name="blobList"
            Grid.Column="0" Grid.Row="0" ScrollViewer.VerticalScrollBarVisibility="Visible">
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <StackPanel Orientation="Horizontal">
                        <Image Height="20" Width="20" Source="{Binding StatusImage}" />
                        <TextBlock Text="{Binding Name}" Height="20" Width="210" Foreground="Black">
                            <ToolTipService.ToolTip>
                                <ToolTip Content="{Binding Name}" HorizontalOffset="5" VerticalOffset="5"/>
                            </ToolTipService.ToolTip>
                        </TextBlock>
                        <ProgressBar Height="20" Width="100" Value="{Binding Percentage}" />
                        <Button Content="Upload" Height="20" Width="80" Tag="{Binding}"
                            Click="ButtonUpload_Click" Loaded="ButtonUpload_Loaded" />
                        <Button Content="Download" Height="20" Width="80" Tag="{Binding}"
                            Click="ButtonDownload_Click" Loaded="ButtonDownload_Loaded" />
                        <Button Content="Cancel" Height="20" Width="60" Tag="{Binding}"
                            Click="ButtonCancel_Click" IsEnabled="{Binding Finished}"/>
                    </StackPanel>
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>
    </Grid>
</UserControl>
